function analyzeDistributions(pattern,workspace)

eval(['load ' workspace]);

variables = who(pattern);

for i=1:length(variables)
    
    delta(i) = rejections(i,1);
        
    data = eval([char(variables(i))]);
    mean(i) = mean(data);
    sigma(i) = std(data);
    [H(i),pValue(i)] = jbtest(data,0.01);
    
end

subplot(3,2,1);
plot(delta,mean,'.k');
ylabel('mean');

subplot(3,2,2);
plot(delta,sigma,'+r');
ylabel('std');

subplot(3,2,3);
plot(delta,pValue,'.k');
ylabel('p-value');

subplot(3,2,4);
plot(delta,H,'.k');
ylabel('test de Hipotesis');

subplot(3,2,5);
plot(delta,rejections(:,2));
ylabel('tasa de rechazos');

subplot(3,2,6);
plot(delta,rejections(:,3));
ylabel('tiempo en simular');